demos/gtk-demo/listview*.c: Include stdlib.h
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 4 Jun 2020 08:35:02 +0000 (16:35 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 5 Jun 2020 03:16:45 +0000 (11:16 +0800)
atoi() and qsort() both require this header for them to be defined

demos/gtk-demo/listview_colors.c
demos/gtk-demo/listview_settings.c

index b7a5c567faab3e5235c2290989d35458c0aac9dc..bc01d83eaf8ec0508e2b7a74e658896607852539 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <gtk/gtk.h>
 
+#include <stdlib.h>
+
 #define GTK_TYPE_COLOR (gtk_color_get_type ())
 G_DECLARE_FINAL_TYPE (GtkColor, gtk_color, GTK, COLOR, GObject)
 
index 3e86e18346f2edc28edaf36e0d2723185acb1300..e5908047b3bdb65f247b00503752ef44441bb4ea 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <gtk/gtk.h>
 
+#include <stdlib.h>
+
 /* Create an object that wraps GSettingsSchemaKey because that's a boxed type */
 typedef struct _SettingsKey SettingsKey;
 struct _SettingsKey